package meta.api.web.file.businessinfo;

import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * 文件
 */
public class FileInfo implements Serializable {

    /**
     * serialVersionUID
     */
    private static final long serialVersionUID = 1L;

    /**
     * 文件名
     */
    @JsonProperty
    private String filename;

    /**
     * URL
     */
    @JsonProperty
    private String url;

    /**
     * 字节长度
     */
    @JsonProperty
    private long length;

    /**
     * 元数据
     */
    @JsonProperty
    private MetadataInfo metadata;

    /**
     * 文件内容
     */
    @JsonIgnore
    private byte[] fileContent;

    /**
     * 上传日期
     */
    @JsonProperty
    private String uploadDate;

    public String getFilename() {
        return filename;
    }

    public void setFilename(String filename) {
        this.filename = filename;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public long getLength() {
        return length;
    }

    public void setLength(long length) {
        this.length = length;
    }

    public MetadataInfo getMetadata() {
        return metadata;
    }

    public void setMetadata(MetadataInfo metadata) {
        this.metadata = metadata;
    }

    public byte[] getFileContent() {
        return fileContent;
    }

    public void setFileContent(byte[] fileContent) {
        this.fileContent = fileContent;
    }

    public String getUploadDate() {
        return uploadDate;
    }

    public void setUploadDate(String uploadDate) {
        this.uploadDate = uploadDate;
    }
}
